<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QIap: drmfile_p.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>drmfile_p.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef DRMFILE_P_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define DRMFILE_P_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;qglobal.h&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;caf/content.h&gt;</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="keyword">using namespace </span>ContentAccess;
<a name="l00016"></a>00016 <span class="keyword">class </span><a class="code" href="class_d_r_m_file.html" title="Utility API intended to demonstrate and facilitate access to DRM protected content.">DRMFile</a>;
<a name="l00017"></a>00017 
<a name="l00024"></a><a class="code" href="class_d_r_m_file_private.html">00024</a> <span class="keyword">class </span><a class="code" href="class_d_r_m_file_private.html" title="Content Access Framework (CAF) wrapper implementation.">DRMFilePrivate</a>
<a name="l00025"></a>00025 {
<a name="l00026"></a>00026 <span class="keyword">public</span>:
<a name="l00031"></a>00031     <span class="keyword">explicit</span> <a class="code" href="class_d_r_m_file_private.html" title="Content Access Framework (CAF) wrapper implementation.">DRMFilePrivate</a>();
<a name="l00036"></a>00036     <span class="keyword">virtual</span> ~<a class="code" href="class_d_r_m_file_private.html" title="Content Access Framework (CAF) wrapper implementation.">DRMFilePrivate</a>();
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">public</span>:
<a name="l00046"></a>00046     <span class="keywordtype">int</span> open(<span class="keyword">const</span> QString &amp; fileName);
<a name="l00047"></a>00047 
<a name="l00054"></a>00054     <span class="keywordtype">int</span> read(uchar*&amp; data);
<a name="l00059"></a>00059     <span class="keywordtype">void</span> close();
<a name="l00064"></a>00064     <span class="keywordtype">int</span> size();
<a name="l00065"></a>00065 <span class="preprocessor">#ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>    qint64 size64();
<a name="l00067"></a>00067 <span class="preprocessor">#endif</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00073"></a>00073     <span class="keyword">static</span> <span class="keywordtype">bool</span> isDRMError(<span class="keywordtype">int</span> error);
<a name="l00074"></a>00074     
<a name="l00075"></a>00075 <span class="keyword">private</span>:
<a name="l00081"></a>00081     <span class="keywordtype">int</span> openL(<span class="keyword">const</span> TDesC&amp; fileName);
<a name="l00082"></a>00082    
<a name="l00083"></a>00083 <span class="keyword">private</span>:
<a name="l00084"></a>00084     CContent *CAF_file; 
<a name="l00085"></a>00085     CData *CAF_data; 
<a name="l00086"></a>00086     TBool intentExecuted; 
<a name="l00087"></a>00087 };
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="preprocessor">#endif // DRMFILE_P_H</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated on Thu Apr 26 2012 12:42:07 for QIap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
